--[[
Licenced under GNU GPL.
For more information, see LICENCE in the main folder.
--]]
require "./AI/USER_AI/easyai/objects/Owner.lua"

--[[
Contains codes relevant with the homunculus.

@version	0.1 23 Aug 2011
@author		rodmp
--]]
-- Inherit enemy class.
Homun = Owner:new{homunType = 0, destX = 0, destY = 0, attackRange = 0}

function Homun:setHomunType()
    self.homunType = GetV(V_HOMUNTYPE, self.id)
end

function Homun:getHomunType()
    return self.homunType
end

function Homun:setDestination(x, y)
    self.x = x
    self.y = y
end

function Homun:getDestination()
    return self.x, self.y
end

function Homun:getNewTarget()
    
end

function Homun:setAttackRange()
    self.attackRange = GetV(V_ATTACKRANGE, self.id)
end

function Homun:getAttackRange()
    return self.attackRange
end